import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeRouter from './Home/index'
import ResourcesRouter from './Resources/index'
import AdminRoiter from './admin/index'
Vue.use(VueRouter)

const routes = [
  HomeRouter,
  ResourcesRouter,
  AdminRoiter,
  {
    path:'/*',
    redirect:'/home'
  }
]

const router = new VueRouter({
  mode: 'history',
  linkActiveClass:'active',
  base: process.env.BASE_URL,
  routes
})

export default router
